Skip to content

Conversation

@anna-shakhova
Copy link
Contributor

No description provided.

@anna-shakhova anna-shakhova self-assigned this Oct 28, 2025
Copilot AI review requested due to automatic review settings October 28, 2025 09:30
@anna-shakhova anna-shakhova requested a review from a team as a code owner October 28, 2025 09:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the Form component's itemOption method when retrieving items by path where multiple items share the same name or caption (T1311534). The fix ensures path-based lookups correctly traverse nested groups and return the intended item rather than the first matching name.

Key changes:

  • Fixed the _getFieldParts method to correctly reverse the path array after splitting
  • Added validation in _getItemByFieldPath to ensure the path node matches before retrieving nested items
  • Changed return types from false to null for consistency with TypeScript conventions

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets.form/form.tests.js Added test case verifying itemOption retrieves correct items by path when duplicates exist
packages/devextreme/js/__internal/ui/form/form.utils.ts Changed return type from false to null for consistency
packages/devextreme/js/__internal/ui/form/form.ts Fixed path parsing logic and added path validation to prevent incorrect item matching

Copilot AI review requested due to automatic review settings October 28, 2025 12:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings October 29, 2025 08:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

@anna-shakhova anna-shakhova force-pushed the 25_2__T1311534 branch 2 times, most recently from 3e07deb to 482e249 Compare October 30, 2025 08:55
Copilot AI review requested due to automatic review settings October 30, 2025 08:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings October 31, 2025 07:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

@anna-shakhova anna-shakhova merged commit aa6282b into DevExpress:25_2 Oct 31, 2025
147 of 149 checks passed
@anna-shakhova anna-shakhova deleted the 25_2__T1311534 branch October 31, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants